package com.xdd.mybatis.dao;

import com.xdd.mybatis.bean.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author user_xdd
 * @Date 2022-01-24 13:54
 * @description
 */
public interface EmployeeMapperDynamicSQL {
    //携带了哪个字段查询条件就带上这个字段的值
    public List<Employee> getEmpsByConditionIf(Employee employee);

    public List<Employee> getEmpsByConditionTrim(Employee employee);

    public List<Employee> getEmpsByConditionChoose(Employee employee);
    public void updateEmp(Employee employee);
    public List<Employee> getEmpsByConditionForeach(@Param("ids")List<Integer> ids);
    public List<Employee> getEmpsTestInnerParameter(Employee employee);

    public void addEmps(@Param("emps")List<Employee> emps);
}
